<!DOCTYPE html>

<%@ page contentType="text/html" pageEncoding="UTF-8" %>

<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>

<html lang="pt-br">
	<head>
    	<meta charset="utf-8">
		<meta http-equiv="X-UA-Compatible" content="IE=edge">
    	<meta name="description" content="Boss; Gestão de clínica; Consultas; Pacientes; Funcionários; Controle financeiro;">
   		<meta name="author" content="Douglas Fernandes; Marcos Aguiar">
   		<meta name="viewport" content="width=device-width, initial-scale=1.0">
    	
    	<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/stylesheets/application.css"/>
    	<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/stylesheets/style.css"/>
    	<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/stylesheets/typeahead.css"/>
    	<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/stylesheets/docs.css"/>
    	<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/bootstrap/css/bootstrap.css"/>
    	<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/bootstrap/css/bootstrap-responsive.css"/>
		<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/bootstrap/css/datepicker.css"/>
		<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/bootstrap/css/bootstrap-timepicker.min.css"/>
		
		<title>BOSS</title>
	</head>
	
	<body data-spy="scroll" data-target=".bs-docs-sidebar" data-twttr-rendered="true">
		<div class="navbar navbar-inverse navbar-fixed-top">
			<div class="navbar-inner">
		  		<div class="container container-menu">
      				<div class="load">
      					<img class="img-load" alt="Carregando.." src="${pageContext.request.contextPath}/images/load.gif"/>
						Carregando..
      				</div>
		    		<button name="skipAjax" type="button" class="btn btn-navbar collapsed" data-toggle="collapse" data-target=".nav-collapse">
		      			<span class="icon-bar"></span>
		      			<span class="icon-bar"></span>
		      			<span class="icon-bar"></span>
		   			</button>
		    		<div class="nav-collapse collapse" style="height:0px;">
		    			<a class="brand" href="${pageContext.request.contextPath}/resumo">
		    				<i class="icon-home icon-white"></i> BOSS
		    			</a>
		      			<ul class="nav">
		      				<c:if test="${userSession.user.perfil ne 'PACIENTE'}">
			          			<li><a href="${pageContext.request.contextPath}/consultas/${today}/${month}/${year}"><i class="icon-bookmark icon-white"></i> Consultas</a></li>
		        			</c:if>
		        			<li class="dropdown">
			                	<a name="skipAjax" class="dropdown-toggle" data-toggle="dropdown" href="#"><i class="icon-user icon-white"></i> Usuários <b class="caret"></b></a>
			                	<ul class="dropdown-menu">
			                		<c:if test="${userSession.user.perfil eq 'SECRETARIA' or userSession.user.perfil eq 'ADMINISTRADOR'}">
			       						<li><a href="${pageContext.request.contextPath}/pacientes"><i class="icon-user"></i> Pacientes</a></li>
					            		<li><a href="${pageContext.request.contextPath}/funcionarios"><i class="icon-user"></i> Funcionários</a></li>
				            		</c:if>
		                  			<c:if test="${userSession.user.perfil eq 'ADMINISTRADOR'}">
			                  			<li class="divider">Outros</li>
						          		<li><a href="${pageContext.request.contextPath}/usuarios"><i class="icon-user"></i> Usuários</a></li>
					          		</c:if>
			                	</ul>
			              	</li>
			              	<c:if test="${userSession.user.perfil eq 'SECRETARIA' or userSession.user.perfil eq 'ADMINISTRADOR'}">
			      				<li class="dropdown">
				                	<a name="skipAjax" class="dropdown-toggle" data-toggle="dropdown" href="#">
				                		<i class="icon-certificate icon-white"></i> Caixa <b class="caret"></b>
				                	</a>
				                	<ul class="dropdown-menu">
				                		<li><a href="${pageContext.request.contextPath}/creditos"><i class="icon-arrow-right"></i> Entradas</a></li>
				                		<li><a href="${pageContext.request.contextPath}/debitos"><i class="icon-arrow-left"></i> Saídas</a></li>
				                	</ul>
				              	</li>
			              	</c:if>
	                		<c:if test="${userSession.user.perfil eq 'SECRETARIA' or userSession.user.perfil eq 'ADMINISTRADOR'}">
			      				<li class="dropdown">
				                	<a name="skipAjax" class="dropdown-toggle" data-toggle="dropdown" href="#">
				                		<i class="icon-print icon-white"></i> Relatório <b class="caret"></b>
				                	</a>
				                	<ul class="dropdown-menu">
				                		<li><a href="${pageContext.request.contextPath}/relatorios/consulta"><i class="icon-bookmark"></i> de Consultas</a></li>
 				                		<li><a href="${pageContext.request.contextPath}/relatorios/faturamento"><i class="icon-briefcase"></i> Financeiro</a></li>
 				                	</ul>
 				              	</li>
			              	</c:if>
	                		<c:if test="${userSession.user.perfil eq 'SECRETARIA' or userSession.user.perfil eq 'ADMINISTRADOR'}">
				              	<li class="dropdown">
				                	<a name="skipAjax" class="dropdown-toggle" data-toggle="dropdown" href="#">
				                		<i class="icon-wrench icon-white"></i> Configurar <b class="caret"></b>
				                	</a>
				                	<ul class="dropdown-menu">
<%-- 					            		<li><a href="${pageContext.request.contextPath}/cH"><i class="icon-tag"></i> CH</a></li> --%>
			       						<li><a href="${pageContext.request.contextPath}/convenios"><i class="icon-list-alt"></i> Convênios</a></li>
					            		<li><a href="${pageContext.request.contextPath}/especialidades"><i class="icon-briefcase"></i> Especialidades </a></li>
					            		<li><a href="${pageContext.request.contextPath}/subEspecialidades"><i class="icon-briefcase"></i> Especialidades Convênio</a></li>
				                	</ul>
				              	</li>
				        	</c:if>

<!-- 				        	<li class="dropdown"> -->
<!-- 			                	<a name="skipAjax" class="dropdown-toggle" data-toggle="dropdown" href="#"> -->
<!-- 			                		<i class="icon-question-sign icon-white"></i> Ajuda <b class="caret"></b> -->
<!-- 			                	</a> -->
<!-- 			                	<ul class="dropdown-menu"> -->
<%-- 				            		<li><a href="${pageContext.request.contextPath}/assistent"><i class="icon-wrench"></i> Assistência Técnica</a></li> --%>
<!-- 				            	</ul> -->
<!-- 				            </li> -->
		   				</ul>
		      			<ul class="nav pull-right">
		        			<li>
		        				<form class="navbar-search pull-left" action="${pageContext.request.contextPath}/logout">
		        					<button name="skipAjax" class="btn btn-danger btn-exit" type="submit">
		        						<i class="icon-off icon-white"></i> Sair
		        					</button>
		        				</form>
		        			</li>
		      			</ul>
		    		</div><!-- /.nav-collapse -->
		  		</div>
			</div><!-- /navbar-inner -->
		</div>
		
		<div class="container-fluid">
	    	<div class="row-fluid" id="content">
	    		
				<jsp:include page="resumo.jsp"/>
				
		    </div>
	    </div>
	    
    	<script type="text/javascript" src="${pageContext.request.contextPath}/javascripts/jquery.js"></script>
    	<script type="text/javascript" src="${pageContext.request.contextPath}/javascripts/jquery.form.js"></script>
    	<script type="text/javascript" src="${pageContext.request.contextPath}/javascripts/ajax.js"></script>
    	<script type="text/javascript" src="${pageContext.request.contextPath}/javascripts/typeahead.js"></script>
    	<script type="text/javascript" src="${pageContext.request.contextPath}/bootstrap/js/bootstrap.js"></script>
    	<script type="text/javascript" src="${pageContext.request.contextPath}/bootstrap/js/bootstrap-inputmask.min.js"></script>
	    <script type="text/javascript" src="${pageContext.request.contextPath}/bootstrap/js/bootstrap-affix.js"></script>
		<script type="text/javascript" src="${pageContext.request.contextPath}/bootstrap/js/bootstrap-datepicker.js"></script>
		<script type="text/javascript" src="${pageContext.request.contextPath}/bootstrap/js/bootstrap-timepicker.min.js"></script>
		<script type="text/javascript" src="${pageContext.request.contextPath}/bootstrap/js/bootstrap-datepicker.pt-BR.js"></script>
	</body>
</html>